<style type="text/css">
	legend {
		font-size:8px;
		font-weight:bold;
		text-transform:uppercase;
		background:#f1f1f1;
		border-top:1px dotted #333;
		border-left:1px dotted #333;
		border-right:1px dotted #333;
		padding:3px;
		background:#ddd;
	}
	fieldset {
		background:#f4f4f4;
		border:1px dotted #333;
                margin-top: 10px;
	}
	.noborder {
		border:none;
		background:none;
	}
	input[type=button] {
		font-size:11px;
	}
</style>
<div class="judul"><?php echo anchor($linkBack, $prevPage);?> <span class="breadcrumb"><?php echo "$titlePage";?></span></div>
<div class="data-input">
    <fieldset>
        <legend>Data Adik Asuh</legend>
        <?php
          foreach ($adikAsuh as $row);
        ?>
        <label>Nama</label><span style="font-size: 11px;padding-top: 7px;"><?php echo $row['nama'];?></span>
        <label>Sekolah</label><span style="font-size: 11px;padding-top: 7px;"><?php echo $row['sekolah'];?></span>
        <label>Tingkat Pendidikan</label><span style="font-size: 11px;padding-top: 7px;"><?php echo $row['tingkat_pendidikan'];?></span>
        <label>Kelas</label><span style="font-size: 11px;padding-top: 7px;"><?php echo $row['kelas'];?></span>
        <label>Tahun Ajaran</label><span style="font-size: 11px;padding-top: 7px;"><?php echo $row['tahun_ajaran'].' '.$row['semester'];?></span>
    </fieldset>
</div>
<div class="data-list">
    <?php
      $uri_segment = $this->uri->segment('4');
      switch ($uri_segment) {
          case 1:
              $legend = 'Data Raport SD';
              break;
          case 2:
              $legend = 'Data Raport SMP';
              break;
          case 3:
              $legend = 'Data Raport SMA';
              break;
          default:
              break;
      }
    ?>
    <fieldset>
    <legend><?php echo "$legend";?></legend>
    <table class="tabel" width="60%"> 
        <tr>
            <th>No</th>
            <th>Tanggal</th>
            <th>Kakak Pembina</th>
            <th>Sekolah</th>
            <th>Tahun Ajaran</th>
            <th>Kelas</th>
            <th>Aksi</th>
        </tr>
        <?php
        $no = 1;
        foreach ($listRaport as $rows){
        ?>
        <tr class="<?php echo ($no%2)?'even':'odd';?>">
            <td style="text-align: center;width: 5%;"><?php echo "$no";?></td>
            <td style="text-align: center;width: 10%;"><?php echo datefmysql($rows['tanggal']);?></td>
            <td style="width: 20%;"><?php echo $rows['member'];?></td>
            <td><?php echo $rows['sekolah'];?></td>
            <td style="text-align: center;width: 15%;"><?php echo $rows['tahun_ajaran'].' '.$rows['semester'];?></td>
            <td style="text-align: center;width: 10%;"><?php echo $rows['kelas'].' '.$rows['tingkat_pendidikan'];?></td>
            <td class="aksi" style="width: 10%;">
                <?php echo anchor('adik_asuh/detail_raport/'.$rows['id_raport'].'/'.$row['id'].'/'.$uri_segment, 'detail', 'class=detail title="detail"');?>
            </td>
        </tr>
        <?php
        $no++;
        }
        ?>
    </table>
    </fieldset>    
</div>    
